package org.jeecg.chase.common.dataaccess.data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author leikai
 * @version 1.0
 * @description: 自定义分页请求返回结果封装类
 * @date 2021/07/01/0001 16:57
 */
public class PageResultSetExtractor<T> {

    /**
     * 符合条件的分页结果
     */
    List<T> result = new ArrayList<T>();
    /**
     * 符合条件的总记录数
     */
    long total = 0;

    public PageResultSetExtractor() {
    }

    public PageResultSetExtractor(List<T> result, long total) {
        this.result = result;
        this.total = total;
    }

    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
